package brands

import (
	"context"
	"device_srv/device"
	"device_srv/internal/dao"
	"device_srv/internal/svc"

	"github.com/zeromicro/go-zero/core/logx"
)

type BrandsDeleteLogic struct {
	ctx    context.Context
	svcCtx *svc.ServiceContext
	logx.Logger
}

func NewBrandsDeleteLogic(ctx context.Context, svcCtx *svc.ServiceContext) *BrandsDeleteLogic {
	return &BrandsDeleteLogic{
		ctx:    ctx,
		svcCtx: svcCtx,
		Logger: logx.WithContext(ctx),
	}
}

// BrandsDelete 品牌信息删除
func (l *BrandsDeleteLogic) BrandsDelete(in *device.BrandsDeleteRequest) (*device.BrandsDeleteResponse, error) {
	//调用业务逻辑
	_, err := dao.BrandsDelete(in)
	if err != nil {
		return nil, err
	}
	return &device.BrandsDeleteResponse{}, nil
}
